package com.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author XiaoKai
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exam_user_paper")
@ApiModel(value="UserPaper对象", description="")
public class UserPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户考试表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "考试名字")
    private String name;

    @ApiModelProperty(value = "考试开始时间")
    private Date startTime;

    @ApiModelProperty(value = "考试截止时间")
    private Date deadTime;

    @ApiModelProperty(value = "是否通过")
    private Boolean isPass;

    @ApiModelProperty(value = "考试时长(分钟)")
    private Integer duration;

    @ApiModelProperty(value = "考试描述")
    private String description;

    @ApiModelProperty(value = "0:未考试 1：已经考试 2：复习")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "试卷id")
    private Integer paperId;

    @ApiModelProperty(value = "试卷")
    private Paper paper;

}
